package com.maycari.captainbi.controller;


import com.maycari.captainbi.common.bo.TtxtResult;
import com.maycari.captainbi.data.dto.Captain17Dto;
import com.maycari.captainbi.data.po.Captain17Po;
import com.maycari.captainbi.service.Captain17Service;
import com.maycari.tool.utils.BeanUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 王宏伟
 * @since 2021-04-01
 */
@RestController
@RequestMapping("/captain47-po")
public class Captain47Controller {

    @Autowired
    private Captain17Service captain17Service;

    @PostMapping(value = "save17")
    public void save(@RequestBody Captain17Dto captain17Dto){
        Captain17Po copy = BeanUtil.copy(captain17Dto, Captain17Po.class);
        captain17Service.save(copy);
    }

}

